<%@ page title="" language="C#" masterpagefile="~/RealtimeSite.master" autoeventwireup="true" inherits="LeaveApplication, App_Web_xtpq4zcp" %>
        <%@ Register Assembly="Heidarpour.WebControlUI" Namespace="Heidarpour.WebControlUI"
    TagPrefix="rhp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
     .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    padding: 8px 8px !important;
    vertical-align: middle;
    border-color: #ddd;
}
                      .card [class*=card-header-]:not(.card-header-icon):not(.card-header-text):not(.card-header-image) {
    border-radius: 3px;
      margin-top: -37px;
    padding: 7px !important;
}
   .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: .05rem 0rem;
    /* margin-bottom: 1rem; */
    list-style: none;
    background-color: #fff !important;
    border-radius: .25rem;
    color: #E15C11;
    font-size: 18px;
    font-weight: 500;
}
 i, cite, em, var, address, dfn {
    font-style: normal !important;
}
.container .card
{
    margin-top:-40px;
}
.grid-lable1 span
{
    font-size: 14px !important;
    line-height: 1.42857 !important;
    color: #333 !important;
    font-weight: 600 !important;
    padding-left: 7px !important;
    padding-top: -3px !important;
    position: relative !important;
    top: -3px !important;
}
#MainContent_Label22
{
    font-size:12px;
    font-weight:bold;     
}
#MainContent_Label21
{
    font-size:12px;
    font-weight:bold;   
}
#MainContent_Label4
{
     font-size:12px;
    font-weight:bold;    
}
#MainContent_Label12
{
      font-size:12px;
    font-weight:bold;   
}
#MainContent_Label13
{
    font-size:12px;
    font-weight:bold;    
}
#MainContent_Label5
{
     font-size:12px;
    font-weight:bold;   
}
#MainContent_Label1
{
       font-size:12px;
    font-weight:bold;   
}
#MainContent_Label2
{
   font-size:12px;
    font-weight:bold;    
}
#MainContent_lblLeaveDetails
{
    font-size:15px;
    font-weight:bold;
}
#MainContent_lblLeaveDuration
{
        font-size:15px;
    font-weight:bold;
}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:Panel ID="Panel1" runat="server">
    </asp:Panel>
   
 <div class="main-panel">
        <div class="content">
        <div class="container" id="Leaveapplication" runat="server">
    <div class="row dash-pane2">
    <div class="card">
                <div class="card-header card-header-warning">
                  <h4 class="card-title"><i class="fa fa-list fa-fw"></i>
                        <asp:Label ID="lblLeaveApplication" runat="server" Text="Leave Application"></asp:Label></h4>
                </div>
                <div class="card-body table-responsive">
                <div class="row">
                    <div class="col-lg-4">
                            <asp:Label ID="Label22" runat="server" Text="Employee Code"></asp:Label>
                            <asp:Label ID="Label35" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                            <asp:TextBox ID="txtpaycode" runat="server" class="form-control" OnTextChanged="txtpaycode_TextChanged"
                                AutoPostBack="True" onKeyPress="return numberOnlyExample();"></asp:TextBox>
                        </div>
                        <div class="col-lg-4">
                            <asp:Label ID="Label21" runat="server" Text="Date From"></asp:Label>
                            <asp:Label ID="Label36" runat="server" Text="*"></asp:Label>
                            <asp:TextBox ID="txtfromdate" runat="server" class="form-control" OnTextChanged="txtfromdate_TextChanged"></asp:TextBox>

                              <asp:Panel ID="Panel6" runat="server" Visible="false">
                            <rhp:DatePicker ID="txtfromdate1" runat="server" DatePersian="" CalendarType="Persian"  
        BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" ShowWeekNumbers="True" 
        FirstDayOfWeek="Monday" ShowOthers="True" ></rhp:DatePicker>
                            </asp:Panel>

                            <cc1:CalendarExtender ID="cal1" runat="server" TargetControlID="txtfromdate" Format="dd/MM/yyyy" />
                        </div>
                        <div class="col-lg-4">
                            <asp:Label ID="Label4" runat="server" Text="To From"></asp:Label>
                            <asp:Label ID="Label37" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                            <asp:TextBox ID="txtdateto" runat="server" class="form-control"></asp:TextBox>
                               <asp:Panel ID="Panel2" runat="server" Visible="false">
                            <rhp:DatePicker ID="txtdateto1" runat="server" DatePersian="" CalendarType="Persian"   
        BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" ShowWeekNumbers="True" 
        FirstDayOfWeek="Monday" ShowOthers="True" ></rhp:DatePicker>
                            </asp:Panel>
                            <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd/MM/yyyy" TargetControlID="txtdateto" />
                        </div>
                        <div class="col-lg-4">
                            <asp:Label ID="Label12" runat="server" Text="Employee Name"></asp:Label>
                            <asp:TextBox ID="txtName" runat="server" class="form-control" OnTextChanged="txtName_TextChanged"></asp:TextBox>
                        </div>
                        <div class="col-lg-4">
                            <asp:Label ID="Label13" runat="server" Text="Father/Husband Name" Width="220px"></asp:Label>
                            <asp:TextBox ID="txtfarther" runat="server" class="form-control"></asp:TextBox>
                        </div>
                        <div class="col-lg-4">
                            <asp:Label ID="Label5" runat="server" Text="Cardno" Width="220px"></asp:Label>
                            <asp:TextBox ID="txtcardno" runat="server" class="form-control"></asp:TextBox>
                        </div>
                        <div class="col-lg-4">
                            <asp:TextBox ID="txtcompnay" runat="server" class="form-control" Visible="False"></asp:TextBox>
                        </div>
                        <div class="col-lg-4">
                            <asp:Label ID="Label7" runat="server" Text="Card No" class="form-control" Visible="False"></asp:Label>
                        </div>
                        <div class="col-lg-4">
                            <asp:Label ID="Label8" runat="server" Text="Department" Width="220px" Visible="False"></asp:Label>
                            <asp:TextBox ID="txtdepartment" runat="server" Enabled="False" class="form-control"
                                Visible="False"></asp:TextBox>
                        </div>
                </div>
                <div class="row breadcrumb">
                <b>
                    <asp:Label ID="lblLeaveDetails" runat="server" Text="Leave Details"></asp:Label></b>
                </div>
                <div class="row" style="margin-top:-20px;">
                 <div class="col-lg-4">
                            <asp:Label ID="Label1" runat="server" Text="Leave Name "></asp:Label>
                            <asp:Label ID="Label38" runat="server" ForeColor="#FF3300" Text="*"></asp:Label>
                            <asp:DropDownList ID="cboleavename" runat="server" class="form-control">
                            </asp:DropDownList>
                        </div>
                        <div class="col-lg-5">
                            <asp:Label ID="Label2" runat="server" Text="Reason"></asp:Label>
                            <asp:Label ID="Label39" runat="server" Text="*"></asp:Label>
                            <asp:TextBox ID="txtreason" runat="server" class="form-control"></asp:TextBox>
                        </div>
                </div>
                <div class="row breadcrumb">
                <b>
                                    <asp:Label ID="lblLeaveDuration" runat="server" Text="Leave Duration"></asp:Label></b>
                </div>
                <div class="row" style="margin-left:0px; margin-right:0px; margin-top:-20px;">
                <div class="table-responsive leave-duration" style="height:200px; overflow:scroll">
                   <asp:GridView ID="GridView1" runat="server" 
                                      class="table table-bordered table-hover table-striped">
      
    </asp:GridView>
    </div>
                </div>
                <div class="row" style="margin-top:15px; margin-left:0px; margin-right:0px;">
                <div class="panel panel-primary" style="width:100%">
                <div class="panel-heading" style="padding:4px; font-size:15px; font-weight:bold"><asp:Label ID="lblLeaveBalance" runat="server" Text="Leave Balance"></asp:Label></div>
                <div class="panel-body" style="background:#eee; padding-top:8px; padding-bottom:8px;">
                <div class="row">
                                <div class="col-lg-3 grid-lable1" style="display: none">
                            <asp:RadioButton ID="cboquarter" runat="server" GroupName="ss" Text="" OnCheckedChanged="cboquarter_CheckedChanged" /><asp:Label
                                ID="lblQuarter" runat="server" Text="Quarter"></asp:Label>
                        </div>
                        <div class="col-lg-3 grid-lable1">
                            <asp:RadioButton ID="cbohalfday" runat="server" GroupName="ss" Text="" OnCheckedChanged="cbohalfday_CheckedChanged" /><asp:Label
                                ID="lblHalfDay" runat="server" Text="Half Day"></asp:Label>
                          
                        </div>
                        <div class="col-lg-3 grid-lable1" style="display: none">
                            <asp:RadioButton ID="cbothreefourth" runat="server" GroupName="ss" Text=""    /><asp:Label
                                ID="lblThreeFourth" runat="server" Text="Three Fourth"></asp:Label>
                         
                        </div>
                        <div class="col-lg-3 grid-lable1">
                            <asp:RadioButton ID="cbofullday" Checked="true" runat="server" GroupName="ss" Text=""
                                OnCheckedChanged="cbofullday_CheckedChanged" /><asp:Label ID="lblFullDay" runat="server"
                                    Text="Full Day"></asp:Label>
                        </div>
                </div>
                </div>
                </div>
                </div>
                <div class="row">
                <asp:GridView ID="GridView2" runat="server" class="table table-bordered table-hover table-striped"
                                AlternatingRowStyle-CssClass="alt" PagerStyle-CssClass="pgr" 
                        onselectedindexchanged="GridView2_SelectedIndexChanged">
                                <AlternatingRowStyle />
                                <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                            </asp:GridView>
                </div>
                <br />
                <br />
                <div class="row" style="margin-left:auto; margin-right:auto; display:table; margin-top:-20px; margin-bottom:00px;">
                <asp:Button ID="cmdsave" runat="server" Text="Save" OnClick="cmdsave_Click" type="button"
                            class="btn btn-success " /><i class="fa fa-plus;"></i> <i class="fa fa-trash-o;">
                        </i><i class="fa fa-plus;"></i>&nbsp;&nbsp;
                        <asp:Button ID="cmdcancel" runat="server" Text="Cancel" class=" btn btn-danger" OnClick="cmdcancel_Click" /><i>
                </div>
                </div>
              </div>
    
    </div></div></div></div>
    </i>
     <script src="js/jquery-1.8.3.min.js"
       type="text/javascript"></script>
</asp:Content>
